package com.example.administrator.teainfo.adapter;


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by Administrator on 2016/12/10.
 */

public class FirstInPagerAdapter extends FragmentPagerAdapter {
    private List<Fragment> data;

    public FirstInPagerAdapter(FragmentManager fm,List<Fragment> data) {
        super(fm);
        this.data = data;
    }


    @Override
    public Fragment getItem(int position) {
        return data.get(position);
    }

    @Override
    public int getCount() {
        return data==null?0:data.size();
    }


}
